Objects Reference

flyEngine::get_picture

Prototype

int get_picture(char *file)

Parameters

Parameter Type Description
file char * picture name

Return Value

Returns the picture index into picture array or -1 if picture could not be found.

Remarks

This function is used to get pictures from the stock. It returns the picture index for a given string based picture name. If picture is not in the pictures array, it attempts to load the picture from disk.